<template>
  <div class="dialog-lahei">
    <my-form
      :myform="form"
      :myrules="rules"
      :fname="fname"
      @value="updata"
      @close="close"
      success="转接成功"
      :clear="true"
    ></my-form>
  </div>
</template>

<script>
import MyForm from "@/components/MyInput/MyForm";
export default {
  props: ["fname"],
  components: {
    MyForm,
  },
  data() {
    return {
      form: {
        slkfz: "",
        slkf: "",
        clbz: '',
        f: {
          f1: {
            label: "受理客服组",
            type: "select",
            prop: "slkfz",
            setting: {
              ph: "请选择",
              width: '320',
              items: [
                {
                  label: "客服组一",
                  value: 0,
                },
                {
                  label: "客服组二",
                  value: 1,
                },
                {
                  label: "客服组三",
                  value: 2,
                },
              ],
            },
          },
          f2: {
            label: "受理客服",
            type: "select",
            prop: "slkf",
            setting: {
              ph: "请选择",
              width: '320',
              items: [
                {
                  label: "王美美",
                  value: 0,
                },
                {
                  label: "七尾",
                  value: 1,
                },
                {
                  label: "李想",
                  value: 2,
                },
              ],
            },
          },
          f3: {
            label: "处理备注",
            type: "textarea",
            prop: "clbz",
            setting: {
              ph: "请输入备注",
              rows: 8,
              width: '320',
            },
          },
        },
      },
      rules: {},
    };
  },
  methods: {
    updata(obj) {
      console.log("obj");
      console.log(obj);
      this.form[obj.propname] = obj.valuename;
    },
    close() {
      this.$emit("close", false);
    },
  },
};
</script>

<style>
</style>